﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cloud.Model;
using Cloud.BLL;
public partial class Three_Managerment_Problem_three_NoticCon : System.Web.UI.Page
{
    public String fileurl = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            if (IsPostBack)
            {

            }
            else
            {
                int id = Convert.ToInt32(Request.QueryString["id"]);
                Notices activity = NoticesManager.FindById(id);
                this.title.InnerText = activity.Title;
                this.name.InnerText = activity.Relname;
                this.time.InnerText = activity.Rtime.ToString();
                string[] s = activity.Files.ToString().Split('.');
                this.file.InnerText = activity.Files.ToString().Equals("") ? "" : s[0];
                this.fileurl = activity.Files;
                this.con.InnerText = activity.Cons;

            }
        }
        catch (Exception ex)
        {
            Response.Write("<script>alert('登陆信息失效,请重新登陆!'); window.parent.location.href='/index.html'</script>");
            return;
        }
    }
}